<%@ page import="com.foreknow.model.Guestbook" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/2/27 0027
  Time: 22:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>修改</title>
    <link rel="stylesheet" href="<%=request.getContextPath()%>/css/bootstrap.min.css">
</head>
<body>
<div class="container">
    <c:set value="${requestScope.gb}" var="gb"></c:set>
    <form class="form-horizontal" method="post" action="<%=request.getContextPath()%>/user/manager?id=${gb.id}&q=update">
        <fieldset>
            <legend>
                <h1>修改留言的信息</h1>
            </legend>
            <div class="form-group">
                <label for="inputName3" class="col-md-4 control-label">数据库编号：</label>
                <div class="col-md-4">
                    <input type="text" class="form-control" id="inputid3" placeholder="编号" name="id" value="${gb.id}" disabled="disabled">
                </div>
            </div>
            <div class="form-group">
                <label for="inputName3" class="col-md-4 control-label">姓名：</label>
                <div class="col-md-4">
                    <input type="text" class="form-control" id="inputName3" placeholder="姓名" name="name" value="${gb.name}">
                </div>
            </div>
            <div class="form-group">
                <label for="inputPhone3" class="col-md-4 control-label">电话号码：</label>
                <div class="col-md-4">
                    <input type="text" class="form-control" id="inputPhone3" placeholder="电话号码" name="phone" value="${gb.phone}">
                </div>
            </div>
            <div class="form-group">
                <label for="inputEmail3" class="col-md-4 control-label">电子邮箱：</label>
                <div class="col-md-4">
                    <input type="text" class="form-control" id="inputEmail3" placeholder="xxxx@163.com" name="email" value="${gb.email}">
                </div>
            </div>
            <div class="form-group">
                <label for="inputTitle3" class="col-md-4 control-label">标题：</label>
                <div class="col-md-4">
                    <input type="text" class="form-control" id="inputTitle3" placeholder="请输入标题" name="title" value="${gb.title}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-4 control-label">内容：</label>
                <div class="col-md-4">
                    <textarea class="form-control" name="content" id="input" cols="25" rows="10" >${gb.content}</textarea>
                </div>
            </div>
            <div class="form-group" align="center">
                <button type="submit" class="btn btn-primary btn-lg">修改</button>
                <button type="reset" class="btn btn-default btn-lg" id="btnR">重置</button>
            </div>
            <legend align="center"></legend>
        </fieldset>
    </form>
</div>
</body>
</html>
